import request from '@/utils/request'

export function listSalseDeliver(query) {
  return request({
    url: '/mes/xs/deliver/list',
    method: 'get',
    params: query
  })
}


export function addSalseDeliver(data) {
  return request({
    url: '/mes/xs/deliver',
    method: 'post',
    data: data
  })
}

export function delSalseDeliver(deliverId) {
  return request({
    url: '/mes/xs/deliver/' + deliverId,
    method: 'delete'
  })
}


export function getSalseDeliver(deliverId) {
  return request({
    url: '/mes/xs/deliver/' + deliverId,
    method: 'get'
  })
}


export function execute(deliverId) {
  return request({
    url: '/mes/xs/deliver/' + deliverId,
    method: 'put'
  })
}

export function selectList(query) {
  return request({
    url: '/mes/xs/deliver/selectList',
    method: 'get',
    params: query
  })
}
